﻿@model NationalIT.Fuel___Expenses
@{
    ViewBag.Title = "Fuel Expenses";
}
<div class="row-fluid">
    <div class="span12">
        <div class="box">
            <div class="box-title">
                <h3>
                    <i class="icon-table"></i>NewOrEdit Fuel Expenses</h3>
            </div>
            <div class="box-content">
                <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
                <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
                @using (Html.BeginForm())
                {
                    @Html.ValidationSummary(true)
                        <div class="editor-label">
                            @Html.LabelFor(model => model.Date)
                        </div>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.Date)
                            @Html.ValidationMessageFor(model => model.Date)
                        </div>
                        <div class="editor-label">
                            Type
                        </div>
                        <div class="editor-field">
                            <select name="cboType">
                                @Html.Raw(ViewBag.Type)
                            </select>
                        </div>
                        <div class="editor-label">
                            @Html.LabelFor(model => model.Amount)
                        </div>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.Amount)
                            @Html.ValidationMessageFor(model => model.Amount)
                        </div>
                        <div class="editor-label">
                            @Html.LabelFor(model => model.AmountN)
                        </div>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.AmountN)
                            @Html.ValidationMessageFor(model => model.AmountN)
                        </div>
                        <div class="editor-label">
                            @Html.LabelFor(model => model.Location)
                        </div>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.Location)
                            @Html.ValidationMessageFor(model => model.Location)
                        </div>
                        <div class="editor-label">
                            @Html.LabelFor(model => model.Driver)
                        </div>
                        <div class="editor-field">
                            @Html.DropDownListFor(model => model.Driver, (SelectList)ViewBag.Driver)
                            @Html.ValidationMessageFor(model => model.Driver)
                        </div>
                        <div class="editor-label">
                            @Html.LabelFor(model => model.Description)
                        </div>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.Description)
                            @Html.ValidationMessageFor(model => model.Description)
                        </div>
                        <div class="editor-label">
                            @Html.LabelFor(model => model.Paid_off)
                        </div>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.Paid_off)
                            @Html.ValidationMessageFor(model => model.Paid_off)
                        </div>
                        <div class="editor-label">
                            @Html.LabelFor(model => model.Current_Payroll)
                        </div>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.Current_Payroll)
                            @Html.ValidationMessageFor(model => model.Current_Payroll)
                        </div>
                        <div class="editor-label">
                            @Html.LabelFor(model => model.fee_charged)
                        </div>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.fee_charged)
                            @Html.ValidationMessageFor(model => model.fee_charged)
                        </div>
                        <div class="editor-label">
                            @Html.LabelFor(model => model.Fuel_Card)
                        </div>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.Fuel_Card)
                            @Html.ValidationMessageFor(model => model.Fuel_Card)
                        </div>
                        <p>
                            <input type="submit" value="Create" class="btn btn-info"/>
                            @Html.ActionLink("Back to List", "Index", null, new { @class="btn"})
                        </p>
                }
            </div>
        </div>
    </div>
</div>
